package biz

type Result struct {
	Code int
	Msg  string
	Data interface{}
}

func Success(code int, message string, data interface{}) *Result {
	return &Result{
		Code: 0,
		Msg:  message,
		Data: data,
	}
}

func Fail(code int, message string) *Result {
	return &Result{
		Code: code,
		Msg:  message,
	}
}
